package com.cc.visitor.controller;

import com.cc.alltype.ResponseResult;
import com.cc.visitor.dao.ConfigMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author chanchaw
 * @create 2025-03-30 12:46
 */
@CrossOrigin
@RestController
@RequestMapping("/config")
public class ConfigController {
    @Autowired
    private ConfigMapper dao;
    @PostMapping("/all")
    public ResponseResult getAllConfig(){
        return ResponseResult.ok(dao.selectAll());
    }
}
